﻿using Max.PH4.Shoppgin.Admin.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4.Shoppgin.Admin.IService
{
    public interface ICategoryService
    {
        (bool, string) Insert(CategoryEntity entity);
        int Update(CategoryEntity entity);
        int Delete(CategoryEntity entity);
        int Delete(object id);

        /// <summary>
        /// 递归分类
        /// </summary>
        /// <returns></returns>
        List<dynamic> GetRecursionCategory();
        List<CategoryEntity> Query();
        IQueryable<CategoryEntity> Query(string name);
        IQueryable<CategoryEntity> Query(string name, int pageIndex, int pageSize, out int total);
    }
}
